package com.ly.demo.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ly.demo.entity.UserWxIdEntity;
import com.ly.demo.service.UserWxIdService;
import com.ly.demo.mapper.UserWxIdMapper;
import org.springframework.stereotype.Service;

/**
* @author liuyang
* @description 针对表【t_user_wx_id】的数据库操作Service实现
* @createDate 2024-05-30 14:37:13
*/
@Service
public class UserWxIdServiceImpl extends ServiceImpl<UserWxIdMapper, UserWxIdEntity>
    implements UserWxIdService{

    @Override
    public UserWxIdEntity getByUnionId(String unionId) {
        return this.getOne(Wrappers.lambdaQuery(UserWxIdEntity.class).eq(UserWxIdEntity::getUnionId, unionId));
    }
}




